Returns the number of the last page (starting from 0). For example: If there are three pages this method will return 2.